﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

using Unis.Framework.ORM.Attributes;
using System.ComponentModel.DataAnnotations;


namespace KingRoad.EPM.CompletionMaterialsEntity.Model
{
    /// <summary> 
    /// 竣工资料—归档材料类型表
    /// </summary> 
    [Serializable]
    [ModelMap("Bcd_FileData", new string[] { "Fd_ID" })]
    public class BcdFiledataInfo : BaseEntity
    {
        public BcdFiledataInfo()
        {

        }


        private string _fdId;
        /// <summary>
        /// 主键
        /// </summary>
        [ColumnMap("Fd_ID", System.Data.DbType.String)]
        public string Fd_ID
        {
            get { return _fdId; }
            set
            {
                if (object.Equals(this._fdId, value) != true)
                {
                    this._fdId = value;
                    this.RaisePropertyChanged("Fd_ID");
                }
            }
        }


        private string _fdPid;
        /// <summary>
        /// 父键
        /// </summary>
        [ColumnMap("Fd_PID", System.Data.DbType.String)]
        public string Fd_PID
        {
            get { return _fdPid; }
            set
            {
                if (object.Equals(this._fdPid, value) != true)
                {
                    this._fdPid = value;
                    this.RaisePropertyChanged("Fd_PID");
                }
            }
        }
        private string _fdPname;
        /// <summary>
        /// 父键名称
        /// </summary>
        [ColumnMap("Fd_PName", System.Data.DbType.String)]
        public string Fd_PName
        {
            get { return _fdPname; }
            set
            {
                if (object.Equals(this._fdPname, value) != true)
                {
                    this._fdPname = value;
                    this.RaisePropertyChanged("Fd_PName");
                }
            }
        }

        private int _fdOrder;
        /// <summary>
        /// 排序
        /// </summary>
        [ColumnMap("Fd_Order", System.Data.DbType.Int32)]
        public int Fd_Order
        {
            get { return _fdOrder; }
            set
            {
                if (object.Equals(this._fdOrder, value) != true)
                {
                    this._fdOrder = value;
                    this.RaisePropertyChanged("Fd_Order");
                }
            }
        }

        private string _fdNumb;
        /// <summary>
        /// 序号
        /// </summary>
        [ColumnMap("Fd_Numb", System.Data.DbType.String)]
        public string Fd_Numb
        {
            get { return _fdNumb; }
            set
            {
                if (object.Equals(this._fdNumb, value) != true)
                {
                    this._fdNumb = value;
                    this.RaisePropertyChanged("Fd_Numb");
                }
            }
        }


        private string _fdName;
        /// <summary>
        /// 归档内容
        /// </summary>
        [Required(ErrorMessage = "*")]
        [ColumnMap("Fd_Name", System.Data.DbType.String)]
        public string Fd_Name
        {
            get { return _fdName; }
            set
            {
                if (object.Equals(this._fdName, value) != true)
                {
                    this._fdName = value;
                    this.RaisePropertyChanged("Fd_Name");
                }
            }
        }


        private string _fdCode;
        /// <summary>
        /// 档案号
        /// </summary>
        [ColumnMap("Fd_Code", System.Data.DbType.String)]
        public string Fd_Code
        {
            get { return _fdCode; }
            set
            {
                if (object.Equals(this._fdCode, value) != true)
                {
                    this._fdCode = value;
                    this.RaisePropertyChanged("Fd_Code");
                }
            }
        }


        private int _fdKit;
        /// <summary>
        /// 编制套数
        /// </summary>
        [ColumnMap("Fd_Kit", System.Data.DbType.Int32)]
        [Display(Name = "编制套数")]
        [Range(1, int.MaxValue, ErrorMessage = "请输入大于等于1的数")]
        public int Fd_Kit
        {
            get { return _fdKit; }
            set
            {
                if (object.Equals(this._fdKit, value) != true)
                {
                    this._fdKit = value;
                    this.RaisePropertyChanged("Fd_Kit");
                }
            }
        }


        private string _fdKept;
        /// <summary>
        /// 保管期限(永久、长期、短期、30年)
        /// </summary>
        [ColumnMap("Fd_Kept", System.Data.DbType.String)]
        public string Fd_Kept
        {
            get { return _fdKept; }
            set
            {
                if (object.Equals(this._fdKept, value) != true)
                {
                    this._fdKept = value;
                    this.RaisePropertyChanged("Fd_Kept");
                }
            }
        }


        private string _fdUtype;
        /// <summary>
        /// 编制单位类型(项目法人，设计单位，施工单位，监理单位，施工、监理，相关单位)
        /// </summary>
        [ColumnMap("Fd_UType", System.Data.DbType.String)]
        public string Fd_UType
        {
            get { return _fdUtype; }
            set
            {
                if (object.Equals(this._fdUtype, value) != true)
                {
                    this._fdUtype = value;
                    this.RaisePropertyChanged("Fd_UType");
                }
            }
        }

        private string _fdTable;
        /// <summary>
        /// 表格号
        /// </summary>
        [ColumnMap("Fd_Table", System.Data.DbType.String)]
        public string Fd_Table
        {
            get { return _fdTable; }
            set
            {
                if (object.Equals(this._fdTable, value) != true)
                {
                    this._fdTable = value;
                    this.RaisePropertyChanged("Fd_Table");
                }
            }
        }


        private string _fdRemark;
        /// <summary>
        /// 备注
        /// </summary>
        [ColumnMap("Fd_Remark", System.Data.DbType.String)]
        public string Fd_Remark
        {
            get { return _fdRemark; }
            set
            {
                if (object.Equals(this._fdRemark, value) != true)
                {
                    this._fdRemark = value;
                    this.RaisePropertyChanged("Fd_Remark");
                }
            }
        }


        private int _fdOperateuserid;
        /// <summary>
        /// 操作人ID
        /// </summary>
        [ColumnMap("Fd_OperateUserID", System.Data.DbType.Int32)]
        public int Fd_OperateUserID
        {
            get { return _fdOperateuserid; }
            set
            {
                if (object.Equals(this._fdOperateuserid, value) != true)
                {
                    this._fdOperateuserid = value;
                    this.RaisePropertyChanged("Fd_OperateUserID");
                }
            }
        }


        private string _fdOperateusername;
        /// <summary>
        /// 操作人名
        /// </summary>
        [ColumnMap("Fd_OperateUserName", System.Data.DbType.String)]
        public string Fd_OperateUserName
        {
            get { return _fdOperateusername; }
            set
            {
                if (object.Equals(this._fdOperateusername, value) != true)
                {
                    this._fdOperateusername = value;
                    this.RaisePropertyChanged("Fd_OperateUserName");
                }
            }
        }


        private DateTime _fdOperatetime;
        /// <summary>
        /// 操作时间
        /// </summary>
        [ColumnMap("Fd_OperateTime", System.Data.DbType.DateTime)]
        public DateTime Fd_OperateTime
        {
            get { return _fdOperatetime; }
            set
            {
                if (object.Equals(this._fdOperatetime, value) != true)
                {
                    this._fdOperatetime = value;
                    this.RaisePropertyChanged("Fd_OperateTime");
                }
            }
        }


        private string _fdPids;
        /// <summary>
        /// 父类ID集合
        /// </summary>
        [ColumnMap("Fd_PIds", System.Data.DbType.String)]
        public string Fd_PIds
        {
            get { return _fdPids; }
            set
            {
                if (object.Equals(this._fdPids, value) != true)
                {
                    this._fdPids = value;
                    this.RaisePropertyChanged("Fd_PIds");
                }
            }
        }

    }
}



